<template>
  <div class="container">
    <div class="box top">系统参数</div>
    <div class="box">
      <div class="left">档案附件存放地址</div>
      <div class="right">{{ info.archMainPath }}</div>
    </div>
    <div class="box">
      <div class="left">知识附件存放地址</div>
      <div class="right">{{ info.knowPath }}</div>
    </div>
    <div class="box">
      <div class="left">服务器ip</div>
      <div class="right">{{ info.serverIp }}</div>
    </div>
    <div class="box">
      <div class="left">附件最大大小</div>
      <div class="right">{{ info.maxFile }}</div>
    </div>
    <div class="box">
      <div class="left">当前存储地址</div>
      <div class="right">{{ info.nowStorePath }}</div>
    </div>
    <div class="box">
      <div class="left">使用量</div>
      <div class="right">{{ info.useSpace }}</div>
    </div>
    <div class="box">
      <div class="left">剩余量</div>
      <div class="right">{{ info.leftSpace }}</div>
    </div>
    <div class="box border-bottom">
      <div class="left">总共空间</div>
      <div class="right">{{ info.allSpace }}</div>
    </div>
  </div>
</template>

<script>
import { getSystemInfo } from '@/api/user'
export default {
  data() {
    return {
      info: {

      },
      test: `
档案附件存放地址 archMainPath; 
知识附件存放地址 knowPath;
服务器ip serverIp;
附件最大大小 maxFile;
当前存储地址 nowStorePath;
使用量 useSpace;
剩余量 leftSpace;
总共空间  allSpace;
`
    }
  },
  created() {
    this.getSystemInfo()
  },
  methods: {
    // 获取系统信息
    getSystemInfo() {
      getSystemInfo().then((res) => {
        this.info = res.data
      })
    }
  }
}
</script>

<style scoped>
.container {
  padding: 20px;
}
.top{
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.box {
  font-size: 16px;
  color: #333;
  border-top: 1px solid rgb(189, 189, 189);
  border-left: 1px solid rgb(189, 189, 189);
  border-right: 1px solid rgb(189, 189, 189);
  line-height: 27px;
  width: 50%;
  display: flex;
}
.left {
  /* font-weight: bold; */
  margin-right: 20px;
  padding: 10px;
  width: 150px;
}
.right {
  padding: 10px;
  border-left: 1px solid rgb(189, 189, 189);
}
.border-bottom {
  border-bottom: 1px solid rgb(167, 167, 167);
}
</style>
